#include "tcp_client.hpp"
#include <memory>

void usage()
{
    std::cout << "\nUsage " << "port" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        usage();
        exit(1);
    }

    std::string server_ip = argv[1];
    uint16_t server_port = atoi(argv[2]);
    std::unique_ptr<TcpClient> tcl(new TcpClient(server_ip,server_port));
    tcl->initClient();
    tcl->start();
    return 0;
}